package com.gzhryc.shared_device.oem.micro.api.dto.xcx.v1.pcl;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class PCLScanGetResponse extends SecurityResponse<PCLScanGetResponse.Body> {

    private static final long serialVersionUID = 1L;

    public PCLScanGetResponse() {
        this.body = new Body();
    }

    public PCLScanGetResponse(Integer code, String msg) {
        this.body = new Body();
        this.code = code;
        this.msg = msg;
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private String deviceSn;
        private Integer state;          //状态，1:空闲，2:工作中
        private String tradeNo;
        private Date workDate;
        private Long templateId;        //收费模版ID
        private List<FreeItem> freeItems;

        public String getDeviceSn() {
            return deviceSn;
        }

        public void setDeviceSn(String deviceSn) {
            this.deviceSn = deviceSn;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public String getTradeNo() {
            return tradeNo;
        }

        public void setTradeNo(String tradeNo) {
            this.tradeNo = tradeNo;
        }

        public Date getWorkDate() {
            return workDate;
        }

        public void setWorkDate(Date workDate) {
            this.workDate = workDate;
        }

        public Long getTemplateId() {
            return templateId;
        }

        public void setTemplateId(Long templateId) {
            this.templateId = templateId;
        }

        public List<FreeItem> getFreeItems() {
            return freeItems;
        }

        public void setFreeItems(List<FreeItem> freeItems) {
            this.freeItems = freeItems;
        }
    }

    public static class FreeItem {

        private Integer id;
        private String name;
        private Integer times;
        private Integer hours;
        private String moneyStr;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getTimes() {
            return times;
        }

        public Integer getHours() {
            return hours;
        }

        public void setHours(Integer hours) {
            this.hours = hours;
        }

        public void setTimes(Integer times) {
            this.times = times;
        }

        public String getMoneyStr() {
            return moneyStr;
        }

        public void setMoneyStr(String moneyStr) {
            this.moneyStr = moneyStr;
        }
    }
}
